package com.wang.lotterysystem.dao.config;

import com.wang.lotterysystem.dao.dataobject.Encrypt;
import com.wang.lotterysystem.dao.handler.EncryptTypeHandler;
import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/*
显式注册类型处理器
 */
//@Configuration
//public class MyBatisConfig {
//    @Bean
//    public ConfigurationCustomizer configurationCustomizer() {
//        return configuration -> {
//            configuration.getTypeHandlerRegistry().register(Encrypt.class, EncryptTypeHandler.class);
//        };
//    }
//}
